/*
 * Powered By [rapid-framework]
 * Web Site: http://www.rapid-framework.org.cn
 * Google Code: http://code.google.com/p/rapid-framework/
 * Since 2008 - 2013
 */

package com.smg.community.model;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

import java.util.*;

import javacommon.base.*;
import javacommon.util.*;

import cn.org.rapid_framework.util.*;
import cn.org.rapid_framework.web.util.*;
import cn.org.rapid_framework.page.*;
import cn.org.rapid_framework.page.impl.*;

import com.smg.community.model.*;
import com.smg.community.dao.*;
import com.smg.community.service.*;
import com.smg.community.vo.query.*;

/**
 * @author badqiu email:badqiu(a)gmail.com
 * @version 1.0
 * @since 1.0
 */


public class SmgAppSuggestion extends BaseEntity implements java.io.Serializable{
	private static final long serialVersionUID = 5454155825314635342L;
	
	//alias
	public static final String TABLE_ALIAS = "SmgAppSuggestion";
	public static final String ALIAS_SID = "sid";
	public static final String ALIAS_CONTENT = "content";
	public static final String ALIAS_MEMBER_ID = "memberId";
	public static final String ALIAS_APP_SOURCE = "appSource";
	public static final String ALIAS_APP_VERSION = "appVersion";
	
	//date formats
	
	//可以直接使用: @Length(max=50,message="用户名长度不能大于50")显示错误消息
	//columns START
    /**
     * sid       db_column: sid 
     */	
	
	private java.lang.Integer sid;
    /**
     * content       db_column: content 
     */	
	private java.lang.String content;
    /**
     * memberId       db_column: memberId 
     */	
	
	private java.lang.Integer memberId;
    /**
     * appSource       db_column: appSource 
     */	
	private java.lang.String appSource;
    /**
     * appVersion       db_column: appVersion 
     */	
	private java.lang.String appVersion;
	//columns END

	public SmgAppSuggestion(){
	}

	public SmgAppSuggestion(
		java.lang.Integer sid
	){
		this.sid = sid;
	}

	public void setSid(java.lang.Integer value) {
		this.sid = value;
	}
	
	public java.lang.Integer getSid() {
		return this.sid;
	}
	public void setContent(java.lang.String value) {
		this.content = value;
	}
	
	public java.lang.String getContent() {
		return this.content;
	}
	public void setMemberId(java.lang.Integer value) {
		this.memberId = value;
	}
	
	public java.lang.Integer getMemberId() {
		return this.memberId;
	}
	public void setAppSource(java.lang.String value) {
		this.appSource = value;
	}
	
	public java.lang.String getAppSource() {
		return this.appSource;
	}
	public void setAppVersion(java.lang.String value) {
		this.appVersion = value;
	}
	
	public java.lang.String getAppVersion() {
		return this.appVersion;
	}

	public String toString() {
		return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
			.append("Sid",getSid())
			.append("Content",getContent())
			.append("MemberId",getMemberId())
			.append("AppSource",getAppSource())
			.append("AppVersion",getAppVersion())
			.toString();
	}
	
	public int hashCode() {
		return new HashCodeBuilder()
			.append(getSid())
			.toHashCode();
	}
	
	public boolean equals(Object obj) {
		if(obj instanceof SmgAppSuggestion == false) return false;
		if(this == obj) return true;
		SmgAppSuggestion other = (SmgAppSuggestion)obj;
		return new EqualsBuilder()
			.append(getSid(),other.getSid())
			.isEquals();
	}
}

